package com.demo2do.fms.admin.service.supplier.impl;

import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.fms.admin.dao.supplier.SupplierProfileDao;
import com.demo2do.fms.admin.service.DataServiceImpl;
import com.demo2do.fms.admin.service.supplier.WareSupplierService;
import com.demo2do.fms.entity.supplier.ware.WareSupplier;

/**
 * 
 * @author Wy
 *
 */
@Service("wareSupplierService")
public class WareSupplierServiceImpl extends DataServiceImpl<WareSupplier> implements WareSupplierService{

    @Dao
    private SupplierProfileDao wareSupplierDao;
    
    /* (non-Javadoc)
     * @see com.demo2do.fms.admin.service.supplier.WareSupplierService#getWareSupplier(java.lang.Long)
     */
    public WareSupplier getWareSupplier(Long supplierId) {
        return wareSupplierDao.getWareSupplier(supplierId);
    }

    /* (non-Javadoc)
     * @see com.demo2do.fms.admin.service.supplier.WareSupplierService#edit(com.demo2do.fms.entity.supplier.ware.WareSupplier)
     */
    public void edit(WareSupplier wareSupplier) {
        genericDaoSupport.update(wareSupplier);
    }
    
}